{%extends '../tpl/admin-base.html'%}
{%block body%}
<div class="main">
    {%include '../tpl/aside-nav.html'%}
    <div class="aside-content">
        {%if data%}
        <table class="article-table">
            <tr>
                <th>编号</th>
                <th>姓名/邮箱</th>
                <th>日期</th>
                <th>操作</th>
            </tr>
            {%for k in data%}
            <tr>
                <td>{{loop.index}}</td>
                <td><a target="_blank" href="/article/{{k._id}}">{{k.author}}</a></td>
                <td>{{k.time}}</td>
                <td>
                    <a class="js-delete" href="javascript:;" data-url="/delete/msg/{{k._id}}">删除</a>
                    <a class="js-delete" href="javascript:;" data-url="/delete/msg/{{k._id}}">处理</a>
                </td>
            </tr>
            {%endfor%}
        </table>
        {%else%}
        暂无数据
        {%endif%}
        {%include '../tpl/upage.html'%}
    </div>
</div>
{%endblock%}